package soccer.view;

import java.awt.event.ActionListener;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;

public class AdminCreatePanel extends JPanel {
	private JTextField textFieldAdminName;
	private JTextField textFieldAdminSurname;
	private JPanel panel;
	private JLabel CreateAdminName;
	private JLabel CreateAdminSurname;
	private JButton btnSaveAdmin;
	private JLabel CreateAdminNickname;
	private JLabel CreateBirthDate;
	private JLabel CreateBirthPlace;
	private JLabel CreatePassword;
	private JTextField textFieldNickname;
	private JTextField textFieldBirthdate;
	private JTextField textFieldBirthplace;
	private JTextField textFieldPassword;
	/**
	 * Create the panel.
	 */
	public AdminCreatePanel() {
		setLayout(null);
		
		panel = new JPanel();
		panel.setBounds(220, 5, 10, 10);
		add(panel);
		
		CreateAdminName = new JLabel("Admin Name");
		CreateAdminName.setBounds(24, 26, 75, 19);
		add(CreateAdminName);
		
		CreateAdminSurname = new JLabel("Admin Surname");
		CreateAdminSurname.setBounds(24, 66, 89, 19);
		add(CreateAdminSurname);
		
		textFieldAdminName = new JTextField();
		textFieldAdminName.setBounds(144, 26, 86, 20);
		add(textFieldAdminName);
		textFieldAdminName.setColumns(10);
		
		textFieldAdminSurname = new JTextField();
		textFieldAdminSurname.setBounds(144, 63, 86, 20);
		add(textFieldAdminSurname);
		textFieldAdminSurname.setColumns(10);
		
		btnSaveAdmin = new JButton("Save");
		btnSaveAdmin.setBounds(24, 266, 89, 23);
		add(btnSaveAdmin);
		
		CreateAdminNickname = new JLabel("nickname");
		CreateAdminNickname.setBounds(24, 106, 64, 14);
		add(CreateAdminNickname);
		
		CreateBirthDate = new JLabel("birthdate");
		CreateBirthDate.setBounds(24, 141, 64, 14);
		add(CreateBirthDate);
		
		CreateBirthPlace = new JLabel("birthplace");
		CreateBirthPlace.setBounds(24, 181, 64, 14);
		add(CreateBirthPlace);
		
		CreatePassword = new JLabel("Password");
		CreatePassword.setBounds(24, 221, 64, 14);
		add(CreatePassword);
		
		textFieldNickname = new JTextField();
		textFieldNickname.setColumns(10);
		textFieldNickname.setBounds(144, 103, 86, 20);
		add(textFieldNickname);
		
		textFieldBirthdate = new JTextField();
		textFieldBirthdate.setColumns(10);
		textFieldBirthdate.setBounds(144, 138, 86, 20);
		add(textFieldBirthdate);
		
		textFieldBirthplace = new JTextField();
		textFieldBirthplace.setColumns(10);
		textFieldBirthplace.setBounds(144, 178, 86, 20);
		add(textFieldBirthplace);
		
		textFieldPassword = new JTextField();
		textFieldPassword.setColumns(10);
		textFieldPassword.setBounds(144, 218, 86, 20);
		add(textFieldPassword);

	}
	public JTextField getTextFieldAdminName() {
		return textFieldAdminName;
	}
	 public void addCreateButtonActionListener(ActionListener l){
	    	btnSaveAdmin.addActionListener(l);
	    }
	public void setTextFieldAdminName(JTextField textFieldAdminName) {
		this.textFieldAdminName = textFieldAdminName;
	}
	public JTextField getTextFieldAdminPassword() {
		return textFieldPassword;
	}
	public void setTextFieldAdminPassword(JTextField textFieldAdminPassword) {
		this.textFieldPassword = textFieldAdminPassword;
	}
	public JPanel getPanel() {
		return panel;
	}
	public void setPanel(JPanel panel) {
		this.panel = panel;
	}
	public JLabel getCreateAdminName() {
		return CreateAdminName;
	}
	public void setCreateAdminName(JLabel createAdminName) {
		CreateAdminName = createAdminName;
	}
	public JLabel getCreatePassword() {
		return CreatePassword;
	}
	public void setCreatePassword(JLabel createPassword) {
		CreatePassword = createPassword;
	}
	public JButton getBtnSaveAdmin() {
		return btnSaveAdmin;
	}
	public void setBtnSaveAdmin(JButton btnSaveAdmin) {
		this.btnSaveAdmin = btnSaveAdmin;
	}
	public JTextField getTextFieldAdminSurname() {
		return textFieldAdminSurname;
	}
	public void setTextFieldAdminSurname(JTextField textFieldAdminSurname) {
		this.textFieldAdminSurname = textFieldAdminSurname;
	}
	public JLabel getCreateAdminSurname() {
		return CreateAdminSurname;
	}
	public void setCreateAdminSurname(JLabel createAdminSurname) {
		CreateAdminSurname = createAdminSurname;
	}
	public JLabel getCreateAdminNickname() {
		return CreateAdminNickname;
	}
	public void setCreateAdminNickname(JLabel createAdminNickname) {
		CreateAdminNickname = createAdminNickname;
	}
	public JLabel getCreateBirthDate() {
		return CreateBirthDate;
	}
	public void setCreateBirthDate(JLabel createBirthDate) {
		CreateBirthDate = createBirthDate;
	}
	public JLabel getCreateBirthPlace() {
		return CreateBirthPlace;
	}
	public void setCreateBirthPlace(JLabel createBirthPlace) {
		CreateBirthPlace = createBirthPlace;
	}
	public JTextField getTextFieldNickname() {
		return textFieldNickname;
	}
	public void setTextFieldNickname(JTextField textFieldNickname) {
		this.textFieldNickname = textFieldNickname;
	}
	public JTextField getTextFieldBirthdate() {
		return textFieldBirthdate;
	}
	public void setTextFieldBirthdate(JTextField textFieldBirthdate) {
		this.textFieldBirthdate = textFieldBirthdate;
	}
	public JTextField getTextFieldBirthplace() {
		return textFieldBirthplace;
	}
	public void setTextFieldBirthplace(JTextField textFieldBirthplace) {
		this.textFieldBirthplace = textFieldBirthplace;
	}
	public JTextField getTextFieldPassword() {
		return textFieldPassword;
	}
	public void setTextFieldPassword(JTextField textFieldPassword) {
		this.textFieldPassword = textFieldPassword;
	}

}
